package com.xyy.saas.payment.dao.mapper;

import com.xyy.saas.payment.dao.model.ThirdUserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ThirdUserInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ThirdUserInfo record);

    int insertSelective(ThirdUserInfo record);

    ThirdUserInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ThirdUserInfo record);

    int updateByPrimaryKey(ThirdUserInfo record);

    ThirdUserInfo getThirdUserInfoByUserId(@Param("userId") String userId);

    ThirdUserInfo getThirdUserInfoByThirdUserId(String thirdUserId);

    int updateThirdUserInfoByUserId(ThirdUserInfo record);

    List<ThirdUserInfo> selectNotOpenedByCtime(@Param("beginTime") Date beginTime, @Param("endTime")Date endTime);

    int updateThirdUserIdByUserId(@Param("userId")String userId,  @Param("thirdType")String thirdType,  @Param("thirdUserId")String thirdUserId);

    List<ThirdUserInfo> getPinganThirdUserInfoByUserIds(@Param("userIds") List<String> userIds);
}